package com.gxa.service.shezhiservice;

import com.gxa.common.R;
import com.gxa.pojo.KeHu;
import com.gxa.pojo.KeHu_Insert;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author weishen
 */
public interface KeHuService {
    R selectAllKeHu();
    int selectCountKeHu();
    R selectAllKeHuForPage(int page,int size);
    R selectKeHuByTypeOrBianHaoOrLianXiRenOrMingChenOrPhone(int page,int size,
                                                            String keHuType, String keHuBianHao,
                                                            String keHuMingCheng, String lianXiRen,
                                                            String phone);
    R insertKeHu(KeHu_Insert keHu);

    R updateKeHuById(KeHu keHu);

    R deleteKeHuById(ArrayList<Integer> id);

    R selecAllKeHuType();

    int selectCountAnyKeHu(String keHuType, String keHuBianHao,
                           String keHuMingCheng, String lianXiRen,
                           String phone);
}
